<template>
  <div class="liucheng">
    <a-list :data-source="liucheng">
      <!-- ----------- -->
      <a-list-item @click="toSP" slot="renderItem" slot-scope="item">
        <div class="list-row">
          <div class="list-c">
            {{ item.title }}
          </div>
        </div>
        <div class="list-r">
          <a-icon
            type="right"
            :style="{
              color: '#999999',
            }"
            color
          />
        </div>
      </a-list-item>
    </a-list>
  </div>
</template>

<script type="text/ecmascript-6">
/*eslint-disable*/
export default {
  data() {
    return {
      liucheng:[
        {
          title: '流程记录',
        }
      ]
    }
  },
  props:{
    collectData:{
      type:Object,
      default(){
        return {}
      }
    }
  },
  methods: {
    toSP(){
          sessionStorage.setItem('clickType',3)
          sessionStorage.setItem('enterpriseName',this.collectData.enterpriseName)
          sessionStorage.setItem('assigneeNames',this.collectData.assigneeNames)
          sessionStorage.setItem('instId',this.collectData.instId)
          sessionStorage.setItem('taskId',this.collectData.taskId)
          sessionStorage.setItem('nodeId',this.collectData.nodeId)
          sessionStorage.setItem('defId',this.collectData.defId)
          sessionStorage.setItem('formGuid',this.collectData.formGuid)
          sessionStorage.setItem('fileType', this.collectData.fileType)
          sessionStorage.setItem('openLiuCheng', 1)
          // this.getFileType(this.title)
          return this.$router.push('/sp')
    }
  },
}
</script>

<style lang="less" scoped>
.liucheng {
  padding: 0 12px;
  background-color: #ffffff;
  margin-bottom: 30px;
  /deep/ .ant-list-item {
    font-size: 17px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 600;
    color: #333333;
  }
  .list-r {
    padding-right: 4px;
  }
}
</style>
